package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author sy
 * @since 2023-06-28
 */
@Getter
@Setter
@TableName("dragon_team")
public class Team implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer adminId;

    /**
     * 合同id
     */
    private Integer contractId;

    /**
     * 有效时间
     */
    private Date effectiveTime;

    /**
     * （负责人）用户名称
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 部门名称
     */
    @TableField(exist = false)
    private String departName;

}
